package lhy.autoparts.pojo;

import lhy.frontend.annotation.EntityComment;
import lhy.orm.Serializer;
import lhy.orm.annotation.Column;
import lhy.lhyorm.field.DatabaseField;
import lhy.lhyorm.table.DatabaseTable;

import java.io.Serializable;

@DatabaseTable(tableName = "RefundReportItem")
@EntityComment("退款商品")
public class RefundReportItem implements Serializable {
    @Column("退款商品编号")
    @DatabaseField(generatedId =true)
    public int id;
    @Column("所属退款单")
    @DatabaseField(foreign=true  )
    private RefundReport refundReport;
    @Column("商品信息")
    @DatabaseField(foreign=true )
    public ItemInfo item;
    @Column("单价")@DatabaseField
    public double singlePrice;
    @Column("数量")@DatabaseField
    public int amount;
    @Column("备注")
    @DatabaseField(canBeNull=true) public String  comment;
    @Override
    public String toString() {
        return Serializer.doSerialize(this);
    }
}
